package com.example.lin.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 林志豪
 * @since 2024-02-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sys_permission")
@ApiModel(value = "Permission对象", description = "")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("权限ID")
    @TableId(value = "permission_id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("权限名称")
    @TableField("permission_label")
    private String label;

    @ApiModelProperty("路由地址")
    @TableField("permission_path")
    private String path;

    @ApiModelProperty("路由名称")
    @TableField("permission_name")
    private String name;

    @ApiModelProperty("授权路径")
    @TableField("permission_url")
    private String url;

    @ApiModelProperty("权限图标")
    @TableField("permission_icon")
    private String icon;

    @ApiModelProperty("权限类型(0-目录，1-菜单，2-按钮)")
    @TableField("permission_type")
    private Integer type;

    @ApiModelProperty("备注信息")
    @TableField("permission_remark")
    private String remark;

    @ApiModelProperty("授权标识符")
    @TableField("permission_code")
    private String code;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("父级权限")
    private Integer parentId;

    @ApiModelProperty("是否排序")
    private Integer orderBy;

    @ApiModelProperty("是否删除")
    private Integer deleted;
}
